/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.ac.cput.Toto.polymorphism_princ.poly_impl;

import za.ac.cput.Toto.polymorphism_princ.poly_model.Student;

/**
 *
 * @author Jeffrey
 */
public class UnderGrad extends Student{

    private final float interestRate = (float) 0.12;


    public UnderGrad(String name, long stud_no) {
        super(name, stud_no);
    }



    @Override
    public double calInterest(double amount){

        return amount * interestRate;

    }

}
